//
//  MenkSoftSegment.h
//  分页
//
//  Created by Burn on 2019/4/23.
//  Copyright © 2019 menksoft. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol MenkSoftSegmentDelegate <NSObject>

- (void)didchangeForIndex:(NSInteger)index;

@end

NS_ASSUME_NONNULL_BEGIN

@interface MenkSoftSegment : UIView

@property(assign,nonatomic) NSInteger originalIndex;

@property(assign,nonatomic,readonly) NSInteger currentIndex;

@property(weak,nonatomic) id<MenkSoftSegmentDelegate> delegate;

- (instancetype)initWithFrame:(CGRect)frame andTItles:(NSArray *)titles;

@end

NS_ASSUME_NONNULL_END
